package ch.ethz.fcl.draw;

public class Bounds {
	private static int minX = 0;
	private static int maxX;
	private static int minY = 0;
	private static int maxY;
	
	public static void setMaxX(int x){
		maxX = x;
	}
	
	public static void setMaxY(int y){
		maxY = y;
	}
	
	public static float getBoundX(float x){
		float boundx;
		boundx = (x - minX) / (maxX - minX);
		return boundx;
	}
	
	public static float getBoundY(float y){
		float boundy;
		boundy = 1 - (y - minY) / (maxY - minY);
		return boundy;
	}
}
